const headerMapList = {}
for (const [key, value] of Object.entries(JSON.parse(`{"connection": "keep-alive", set-cookie: [musicwo17=kugou; expires=Fri, 06-Dec-2024 17:24:37 GMT; path=/], date: [Fri, 06 Dec 2024 05:24:37 GMT], transfer-encoding: [chunked], content-encoding: [gzip], vary: [Accept-Encoding], strict-transport-security: [max-age=604800], content-type: [text/html;charset=utf-8], kg-bc-ms: [18], kg-rs-ms: [1733462677825], server: [kws]}`))) {
  if (value.findIndex((it) => it == ",") > -1) {
    headerMapList[key] = [value];
  } else {
    if (key == "Set-Cookie" || key == "set-cookie") {
      headerMapList[key] = value.split(
        /[ \t]*,[ \t]*(?=[' + _tokenChars + ']+=)/
      );
    } else {
      headerMapList[key] = value.split(/[ \t]*,[ \t]*/);
    }
  }
}
